//
//  PPLabTableViewCell.m
//  PPDL
//
//  Created by 王洋 on 2019/10/17.
//  Copyright © 2019 王洋. All rights reserved.
//

#import "PPLabTableViewCell.h"

@implementation PPLabTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];

//    self.selectedBackgroundView = [[UIView alloc] initWithFrame:self.frame];
//    self.selectedBackgroundView.backgroundColor = UIColorHex(0xffffff);

    self.itemTagView.hidden = YES;
    self.itemTitle.adjustsFontSizeToFitWidth = YES;
    

}

- (void)fillCellWithModel:(PPCategoryModel *)model {
    
    self.itemTitle.text = [NSString stringWithFormat:@"%@",model.itemTitle];
    self.itemTagView.hidden = !model.isSelect;
    self.backgroundColor = model.isSelect?UIColorHex(0xffffff):UIColorHex(0xf0f0f0);
    self.itemTitle.textColor = model.isSelect?UIColorHex(0xff3737):UIColorHex(0x808080);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
